﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MegavaniaX.States
{
    /// <summary>
    /// Class that handles state management.
    /// </summary>
    public class StateStack
    {
        private Stack<IState> _states;

        public StateStack()
        {
            _states = new Stack<IState>();
        }

        public void AddState(IState state)
        {
            _states.Push(state);           
        }

        public IState CurrentState()
        {
            return _states.Peek();
        }

    }
}
